package com.xkcoding.sharding.jdbc.mapper;


import com.xkcoding.sharding.jdbc.model.AcqSubOrderDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AcqSubOrderMapper {

    int insert(AcqSubOrderDO record);

    List<AcqSubOrderDO> selectAllBindOrders(@Param("partitionIndex") String partitionIndex,
                                            @Param("outTradeNo")String outTradeNo,
                                            @Param("bindRequestNo")String bindRequestNo,
                                            @Param("bindMerchantNo")String bindMerchantNo);

    int updateStatusByOutTradeNo(@Param("acqSubOrderDO")AcqSubOrderDO acqSubOrderDO,
                                 @Param("toStatus")String toStatus,
                                 @Param("partitionIndex")String index);


}
